package es.xpt.ysf.commons.issues;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import es.xpt.ysf.commons.issues.model.Issue.IssuePriority;
import es.xpt.ysf.commons.issues.model.Issue.IssueResolution;
import es.xpt.ysf.commons.issues.model.Issue.IssueStatus;
import es.xpt.ysf.commons.issues.model.Issue.IssueType;
import es.xpt.ysf.commons.search.model.ItemSearchParams;

@SuppressWarnings("serial")
public class IssueSearchParams extends ItemSearchParams{
	
	private Date fromDate;
	private Date toDate;
	private IssueResolution resolution;
	private List<IssueStatus> status;
	private IssuePriority priority;
	private String entity;
	private String entityId;
	private String businessArea;
	private String parameters;
	private String user;
	private IssueType type;
	private List<String> subscribedRoles = new ArrayList<String>();
	private String subscribedUser;
	private String className;
	
	public IssueSearchParams () {
		
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	public Date getFromDate() {
		return fromDate;
	}
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
	public Date getToDate() {
		return toDate;
	}
	public IssueResolution getResolution() {
		return resolution;
	}
	public void setResolution(IssueResolution resolution) {
		this.resolution = resolution;
	}
	
	public IssuePriority getPriority() {
		return priority;
	}
	public void setPriority(IssuePriority priority) {
		this.priority = priority;
	}
	public String getEntity() {
		return entity;
	}
	public void setEntity(String entity) {
		this.entity = entity;
	}
	public String getEntityId() {
		return entityId;
	}
	public void setEntityId(String entityId) {
		this.entityId = entityId;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public void setBusinessArea(String businessArea) {
		this.businessArea = businessArea;
	}
	public String getBusinessArea() {
		return businessArea;
	}
	public void setType(IssueType type) {
		this.type = type;
	}
	public IssueType getType() {
		return type;
	}
	public List<String> getSubscribedRoles() {
		return subscribedRoles;
	}
	public void setSubscribedRoles(List<String> subscribedRoles) {
		this.subscribedRoles = subscribedRoles;
	}
	public String getSubscribedUser() {
		return subscribedUser;
	}
	public void setSubscribedUser(String subscribedUser) {
		this.subscribedUser = subscribedUser;
	}

	public void setStatus(List<IssueStatus> status) {
		this.status = status;
	}

	public List<IssueStatus> getStatus() {
		return status;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getClassName() {
		return className;
	}

	public void setParameters(String parameters) {
		this.parameters = parameters;
	}

	public String getParameters() {
		return parameters;
	}
}
